package com.example.springboot159.bean;


public class Person {
    private String name;
    private String gender;
    private String house;
    private String age;
    private String hight;
    private Long money;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getHouse() {
        return house;
    }

    public void setHouse(String house) {
        this.house = house;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getHight() {
        return hight;
    }

    public void setHight(String hight) {
        this.hight = hight;
    }

    public Long getMoney() {
        return money;
    }

    public void setMoney(Long money) {
        this.money = money;
    }

    public Person() {
    }

    public Person(Builder builder) {
        this.name = builder.name;
        this.gender = builder.gender;
        this.house = builder.house;
        this.age = builder.age;
        this.hight = builder.hight;
        this.money = builder.money;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", house='" + house + '\'' +
                ", age='" + age + '\'' +
                ", hight='" + hight + '\'' +
                ", money=" + money +
                '}';
    }

    public static class Builder {
        private String name;
        private String gender;
        private String house;
        private String age;
        private String hight;
        private Long money;

        public Builder name(String name) {
            this.name = name;
            return this;
        }

        public Builder gender(String gender) {
            this.gender = gender;
            return this;
        }

        public Builder age(String age) {
            this.age = age;
            return this;
        }

        public Builder house(String house) {
            this.house = house;
            return this;
        }

        public Builder hight(String hight) {
            this.hight = hight;
            return this;
        }

        public Builder money(Long money) {
            this.money = money;
            return this;
        }

        public Person build() {
            return new Person(this);
        }
    }

    public static void main(String[] args) {
        
    }
}